package com.sporadic.client.mapper;

import com.sporadic.client.pojo.Dishes;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface DishesMapper {
//    根据商家ID查询全部菜品
    public List<Dishes> selDishesAll(Integer dishesMerchant);
//    根据菜品类型查询菜品
    public List<Dishes> selDishesTypeIdAll(@RequestParam("dishesType") Integer dishesType);
//    根据菜品名称模糊查询
    public List<Dishes> selDishesLikeNameAll(@Param("dishesName")String dishesName);
//    双向联动查询菜品信息
    public List<Dishes> selDishesTypeDtNameAll(@RequestParam("dishesMerchant")Integer dishesMerchant);
}
